/*
 * @Author: Ron
 * @Date: 2022-02-09 21:26:44
 * @LastEditors: Ron
 * @LastEditTime: 2022-02-09 22:22:45
 */
// 对字符串集合随机排列，随机输出指定的长度
export const randomString = (length) => {
  const str = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
  let result = "";
  for (let i = length; i > 0; --i)
    result += str[Math.floor(Math.random() * str.length)];
  return result;
};
